<template>
   <div>
<el-container >
  <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
    <el-menu router :default-openeds="['1']">
      <el-submenu index="1">
        <template slot="title"><i class="el-icon-message"></i>首页</template>
        <el-submenu index="1-1">
          <template slot="title">轮播图</template>
          <el-menu-item index="/swiperEdit/create">编辑轮播图</el-menu-item>
            <el-menu-item index="/swiperList/list">轮播图列表</el-menu-item>
        </el-submenu>
        <el-submenu index="1-2">
          <template slot="title">Tab</template>
          <el-menu-item index="1-4-1">选项4-1</el-menu-item>
            <el-menu-item index="1-4-1">选项4-1</el-menu-item>
        </el-submenu>
                <el-submenu index="1-3">
          <template slot="title">推送</template>
          <el-menu-item index="1-4-1">选项4-1</el-menu-item>
            <el-menu-item index="1-4-1">选项4-1</el-menu-item>
        </el-submenu>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title"><i class="el-icon-menu"></i>分类</template>
           <el-submenu index="1-4">
          <template slot="title">设置分类</template>
          <el-menu-item index="1-4-1">选项4-1</el-menu-item>
            <el-menu-item index="1-4-1">选项4-1</el-menu-item>
        </el-submenu>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title"><i class="el-icon-setting"></i>admin</template>
        <el-menu-item-group title="管理用户">
        
          <el-menu-item index="3-1">选项1</el-menu-item>
          <el-menu-item index="3-2">选项2</el-menu-item>
        </el-menu-item-group>
        <el-menu-item-group >
              <template slot="title">管理员设置</template>
          <el-menu-item index="3-3">添加管理源账户密码</el-menu-item>
              <el-menu-item index="3-4-1">删除管理员</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
  </el-aside>
  
  <el-container>
    <el-header style="text-align: right; font-size: 12px">
      <el-dropdown>
        <i class="el-icon-setting" style="margin-right: 15px"></i>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item>查看</el-dropdown-item>
          <el-dropdown-item>新增</el-dropdown-item>
          <el-dropdown-item>删除</el-dropdown-item>
        </el-dropdown-menu>
      </el-dropdown>
      <span>王小虎</span>
    </el-header>
    <el-main>
        <router-view :key="$route.path" ></router-view>
    </el-main>
  </el-container>
</el-container>
       </div> 
</template>


<script>
export default {
  name: 'app',
 
}
</script>

<style>

</style>
